home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Framewrk / FWPart / FWPxyIte.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.4 KB  |  93 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWPxyIte.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9. //
  10. //    This file contains the following iterators
  11. //
  12. //        - FW_CProxyProxyFrameIterator
  13. //
  14. //        - FW_CProxyEmbeddedFrameIterator
  15. //
  16.  
  17. #ifndef FWPXYITE_H
  18. #define FWPXYITE_H
  19.  
  20. #ifndef FWSTDDEF_H
  21. #include "FWStdDef.h"
  22. #endif
  23.  
  24. #ifndef FWEXCLIB_H
  25. #include "FWExcLib.h"
  26. #endif
  27.  
  28. #ifndef FWPART_H
  29. #include "FWPart.h"
  30. #endif
  31.  
  32. #ifndef FWPROXY_H
  33. #include "FWProxy.h"
  34. #endif
  35.  
  36. #ifndef FWPXYFRM_H
  37. #include "FWPxyFrm.h"
  38. #endif
  39.  
  40. #ifndef FWORDCOL_H
  41. #include "FWOrdCol.h"
  42. #endif
  43.  
  44. //========================================================================================
  45. //    Forward Declarations
  46. //========================================================================================
  47.  
  48. class ODFrame;
  49.  
  50. //========================================================================================
  51. //    class FW_CProxyProxyFrameIterator
  52. //========================================================================================
  53.  
  54. class FW_CProxyProxyFrameIterator : public FW_TOrderedCollectionIterator<FW_CProxyFrame>
  55. {
  56. public:
  57.     FW_DECLARE_AUTO(FW_CProxyProxyFrameIterator)
  58.  
  59.     FW_CProxyProxyFrameIterator(const FW_MProxy* proxy) :
  60.         FW_TOrderedCollectionIterator<FW_CProxyFrame>(proxy->fProxyFrames) {}
  61.     ~FW_CProxyProxyFrameIterator() {}
  62. };
  63.  
  64. //========================================================================================
  65. //    class FW_CProxyEmbeddedFrameIterator
  66. //========================================================================================
  67.  
  68. class FW_CProxyEmbeddedFrameIterator
  69. {
  70. public:
  71.     FW_DECLARE_AUTO(FW_CProxyEmbeddedFrameIterator)
  72.     
  73.     FW_CProxyEmbeddedFrameIterator(Environment* ev, const FW_MProxy* proxy);
  74.     ~FW_CProxyEmbeddedFrameIterator();
  75.  
  76.     ODFrame*        First(Environment* ev);
  77.     ODFrame*        Next(Environment* ev);
  78.     ODFrame*        Last(Environment* ev);
  79.     ODFrame*        Previous(Environment* ev);
  80.     FW_Boolean        IsNotComplete(Environment*)
  81.                         {return fIterator.IsNotComplete();}
  82.                             
  83. private:
  84.     ODFrame*        PrivNext(Environment* ev, FW_CProxyFrame* proxyFrame);
  85.     ODFrame*        PrivPrevious(Environment* ev, FW_CProxyFrame* proxyFrame);
  86.                                 
  87. private:
  88.     FW_CProxyProxyFrameIterator     fIterator;
  89.     ODFrame*                        fCurrentFrame;
  90. };
  91.  
  92. #endif
  93.